package com.esun.cheetah.biz.personal.attention;

import java.util.HashMap;

import org.json.JSONException;

import android.os.Handler;

import com.esun.cheetah.biz.personal.personalinfo.UserInfo;
import com.esun.cheetah.config.BizCode;
import com.esun.cheetah.config.Key;
import com.esun.cheetah.network.AbsInferiorityCommunicater;

/**
 * 添加关注球队 com.esun.cheetah.view.personal.AddAttenTeam
 * 
 * @author 任付江 create at 2012-4-23 上午11:27:50
 */
public class AddAttenTeam extends AbsInferiorityCommunicater {
	private String teamName;
	private String league;
	private String teamId;

	public AddAttenTeam(Handler handler, String teamName, String league,
			String teamId) {
		super(handler);
		this.teamName = teamName;
		this.league = league;
		this.teamId = teamId;
	}

	@Override
	public HashMap<String, String> comHashMap() {
		HashMap<String, String> addAttenTeam = new HashMap<String, String>();
		addAttenTeam.put(Key.KEY_ID, BizCode.ADD_TEAM_ID);
		addAttenTeam
				.put(Key.KEY_USERNAME, UserInfo.getUserInfo().getUserName());
		addAttenTeam.put(Key.TEAM_ID, teamId);
		addAttenTeam.put(Key.ATTEN_TEAM_LOTNAME, Key.ZQ);
		addAttenTeam.put(Key.TEAM, teamName);
		addAttenTeam.put(Key.LEAGUE, league);
		return addAttenTeam;
	}

	@Override
	public void getJsonContent(String serverRes) throws JSONException {
	}
}